using System;
using System.IO;
using ExcelConfig;
using ExcelConfig.Config;
using ExcelConfig.StoreAPI;

namespace hub.data
{
    public static class HUB
    {
        public static AppConfigFile config { get; internal set; }
        static HUB()
        {
            config = new AppConfigFile("config", AppConfig.Text("配置名"));
            if (!File.Exists(config.ExcelConfig.FullPath)) ConfigStoreAPI.DownloadToFile(AppConfig.Text("配置域"), AppConfig.Text("配置名"), config.ExcelConfig.FullPath);
        }
    }
}
